<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Hecore
 * @copyright  Copyright Hire-Experts LLC
 * @license    http://www.hire-experts.com
 * @version    $Id: Core.php 2010-08-31 16:05 ermek $
 * @author     Ermek
 */

/**
 * @category   Application_Extensions
 * @package    Hecore
 * @copyright  Copyright Hire-Experts LLC
 * @license    http://www.hire-experts.com
 */

class Hecore_Plugin_Core {
	public function onRenderLayoutDefault($event) {
		// Arg should be an instance of Zend_View
		$view = $event->getPayload ();
		
		if (! ($view instanceof Zend_View)) {
			return;
		}
		
		$view->headScript ()->appendFile ( 'application/modules/Hecore/externals/scripts/core.js' )->appendFile ( 'application/modules/Hecore/externals/scripts/imagezoom/core.js' );
		
		$view->headLink ()->appendStylesheet ( $view->baseUrl () . '/application/css.php?request=application/modules/Hecore/externals/styles/imagezoom/core.css' );
		
		$view->headTranslate ( array ('Confirm', 'Cancel', 'or', 'close' ) );
	}
	
	public function onRenderLayoutAdmin($event) {
		$this->onRenderLayoutDefault ( $event );
	}
	
	public function onRenderLayoutAdminSimple($event) {
		$this->onRenderLayoutDefault ( $event );
	}
	
	public function onRenderLayoutDefaultSimple($event) {
		$this->onRenderLayoutDefault ( $event );
	}
}